
<template>
  <div>
    <img src="../assets/1.png" alt="" @click="tap()">

  </div>
</template>

<script>
  export default{
    name:'Index',
    methods:{
      tap(){
         if(!localStorage.getItem('username')){
            this.$router.push('/login')
         }else{
           this.$router.push('/Shouye')
         }
      }
    }

  }
</script>

<style scoped="">
  img{
    width: 100%;
    height: 100%;
    margin-top: -50px;
  }
</style>
